Cache glyph textures in render nodes
authorMatthias Clasen <mclasen@redhat.com>
Tue, 15 Oct 2019 04:14:43 +0000 (00:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Oct 2019 23:44:26 +0000 (19:44 -0400)
commitc5af4638434e39a0c224afb62252caed233c2acb
tree8fa457979f45d80eaf0739411d561b1d148d9f9b
parent49748c9c231d3c2d6d2f6b4d67186f6396e1fb30
Cache glyph textures in render nodes

This is a quick implementation that avoids many
glyph cache lookups. We keep an array of direct
pointers in the text render node, and throw those
cached pointers away whenever any atlases have
been dropped (since that may invalidate the cached
glyphs).
gsk/gl/gskglglyphcache.c
gsk/gl/gskglglyphcacheprivate.h
gsk/gl/gskglrenderer.c
gsk/gskrendernodeimpl.c
gsk/gskrendernodeprivate.h